package com.zmzncs.lmtc.module.promotion.pojo.ticket;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author JD
 * @since 2020-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sp_ticket")
@ApiModel(value="Ticket对象", description="")
public class TicketDTO implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ticketId")
    private Long ticketId;

    @ApiModelProperty(value = "用户和券关系Id")
    private Long custTicketId;

    @ApiModelProperty(value = "优惠券名称")
    private String ticketName;

    @ApiModelProperty(value = "使用界限金额")
    private BigDecimal useLimitMoney;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal preferentialMoney;

    @ApiModelProperty(value = "优惠类型，1.满减 2.折扣")
    private Integer preferentialType;

    @ApiModelProperty(value = "发放类型，1平台发放，2活动发放")
    private Integer grantType;

    @ApiModelProperty(value = "领取时间")
    private Date receiveTime;

    @ApiModelProperty(value = "优惠券使用开始时间")
    private Date useBeginTime;

    @ApiModelProperty(value = "优惠券使用截至时间")
    private Date useEndTime;


}
